from pydantic import BaseModel

class ResultDto(BaseModel):
    code: str
    message: str
    tips: str | None
    data: object | None = None

def success(data: object | None = None):
    return ResultDto(code="0000", message="success", tips=None, data=data)
